home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Tools for Macintosh
/
Power Tools for Macintosh (SoftBit)(1992).iso
/
Applications
/
Alpha 4.01
/
Alpha.4.01
/
Alpha.4.01.rsrc
/
STR#_133.txt
< prev
next >
Wrap
Text File
|
1991-10-22
|
4KB
|
227 lines
disk currently flushes the undo buffer.
Another point to bear in mind is that saving a buffer to
changes that you have undone but not redone are lost.
Bear in mind that once you create new modifications, all
most changes can be undone, and then redone, at will.
ALPHA supports unlimited undo and redo. This means that
Undo and Redo
all.
when they are used outside of macros, parenthesis and
can be placed in macros, with the exact same format as
In addition, all three forms of bindings and unbindings
• yankclip "name" - yank from named clipboard
'\r' means carriage return, '\t' means tab.
• type "name" - inserts string into current window.
that works outside macros as well
• set - used to set variable contents (mirrors command
flag values
• search "name" - search for string, based on current
• saveVars - save all numeric vars, re-entrant
values, re-entrant
• restoreVars - restore all numeric vars to saved
• replaceFindAgain "name" - replace and find again
• replace "name" - replace selection
AlphaBits file.
of 8-bit characters in any direct form in the
characters. The use of flex currently prevents the use
• putascii <ascii code> - can be used for 8-bit
the user and puts the result in the named clipboard.
• prompt "<prompt str>" "<clip for result>" - prompts.
• openfile "<complete pathname>" - opens file.
• loadfile "<complete pathname>" - loads file.
line.
• message "<the message>" - puts a message on status
• menu - used to instantiate the user menu
• mark "name" - create named mark
• insertmenu "name" - insert menu into menubar
• goto "name" - goto named mark
• fileSet - used to define file sets
• deletemenu "name" - remove menu from menubar
• deletemark "name" - delete named mark
• deleteclip "name" - delete named clipboard
• define - used to name macro
• cutclip "name" - cut selected text to named clipboard
clipboard
• copyclip "name" - copy selected text to named
clipboard
• clipsearch "name" - search for contents of named
resource fork of Alpha
• acmd "name" - execute named acmd, which must be in the
examples of use and syntax.
from macros, see the distributed 'AlphaBits' file for
The following are commands that can only be executed
macro and dumping it to a buffer.
what is compiled in these cases, try creating such a
calls, and setting named marks and clipboards. To see
commands include the search and replace commands, 'ACMD'
again prompting every time the macro is executed. These
the result of the prompt into the macro, as opposed to
Several commands which prompt for input actually compile
file.
example macros have been provided in the 'AlphaBits'
to keep it, just put it in the 'AlphaBits' file. Several
things around, add functions, and reload it. If you want
record a macro and dump it to a file. Play w/ it, change
enter text. One good way to learn to write macros is to
has been provided to
in the same state that they found it. The keyword "type"
have been provided to let macros leave the environment
variables. The functions 'saveVars' and 'restoreVars'
or previously defined function. Macros can set
Macros lines can be as simple as the name of a function
manner as functions (see above).
command. Macros can be bound to keys in exactly the same
text is hilited, the entire window is loaded by the same
"Load Selection" item of the 'Customize' window. If no
accomplished by hiliting the text and selecting the
bound to keystrokes. Loading a macro or a binding is
These macro declarations can then be edited, loaded, and
'_'.
consist only of letters of the alphabet, digits, and
function prompts you for a macro name, which must
'Dump Function' from the 'Utilities' menu. The dump
'Utilities' menu) or written into a buffer by selecting
'executeKeyboardMacro' (this function is also in the
of keystrokes to be played back later w/ the function
ALPHA supports keyboard macros which record a sequence
Defining and Using Macros